const { defineConfig } = require('@vue/cli-service')
const path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: './',
  configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    name: 'hello',
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  },
  devServer: {
    hot: true,
    open: true,
    // 代理
    port: 9999
  }
})
